#include "EIGENVALUEData.h"

#include "DataStructure/Common/Validation.h"

using namespace SG::DataStructure::Post;

bool SG::DataStructure::Post::operator== (const EIGENVALUEData& val1, const EIGENVALUEData& val2)
{
    FIELD_COMPARE (m_MODE)
    FIELD_COMPARE (m_ORDER)
    FIELD_COMPARE (m_EIGEN)
    FIELD_COMPARE (m_OMEGA)
    FIELD_COMPARE (m_FREQ)
    FIELD_COMPARE (m_MASS)
    FIELD_COMPARE (m_STIFF)
    FIELD_COMPARE (m_RESFLG)
    FIELD_COMPARE (m_FLDFLG)
    FIELD_COMPARE (m_domainId)
    return true;
}

bool SG::DataStructure::Post::operator< (const EIGENVALUEData& val1, const EIGENVALUEData& val2)
{
    if (val1.m_MODE == val2.m_MODE)
    {
        return val1.m_domainId < val2.m_domainId;
    }
    return val1.m_MODE < val2.m_MODE;
}